
#include "OperationPlus.h"

using namespace npFactoryMethod;


OperationPlus::OperationPlus() : Operation()
{

}

OperationPlus::~OperationPlus()
{

}

OperationPlus::OperationPlus(const OperationPlus& cpy) : Operation(cpy)
{

}

OperationPlus& OperationPlus::operator=(const OperationPlus& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        Operation::operator=(asn);
        return *this;
    }
}

OperationPlus* OperationPlus::clone() const
{
    return new OperationPlus(*this);
}

int OperationPlus::getResult() const
{
    return this->getFirstNum() + this->getSecondNum();
}